package chapter12.section3;

/* Account：模拟账户的类*/
public class Account {
	private String id;
	private String name;
	private int balance;

	public Account(String id, String name, int balance) {
		this.name = name;
		this.balance = balance;
	}
	// todo，这里省略了此类每个属性的getter和setter方法，请添加完整保证运行正确

	@Override
	public String toString() {
		return "Account [id=\" + id + \",[name=" + name + ", balance=" + balance + "]";
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the balance
	 */
	public int getBalance() {
		return balance;
	}

	/**
	 * @param balance the balance to set
	 */
	public void setBalance(int balance) {
		this.balance = balance;
	}
}
